package mode.singleton.meiju;

/**
 * 枚举单例模式
 *
 * @author xjx
 * @date 2023/7/17 16:13
 */
public enum SingletonDemoEnum {
    /**
     * 枚举单例模式
     */
    mysql;

    private final DataSourceDemo source;

    SingletonDemoEnum() {
        this.source = new DataSourceDemo();
    }

    public DataSourceDemo getSource() {
        return source;
    }

}
